/**
 * @file variadic_template_fold.cpp
 * @author your name (you@domain.com)
 * @brief 使用折叠表达式处理可变参数模板
 * @version 0.1
 * @date 2022-08-09
 * 
 * @copyright Copyright (c) 2022
 * 
 */

#include<iostream>
using namespace std;

template<typename... ARGS>
void fun(ARGS&&... args)
{
	((cout << "this first arg: " << args << ", remainder arguments: " << sizeof...(args) << endl), ...);
}

int main(void)
{
	fun(1, 7.0, 8.1f, 'c', "hello");

	return 0;
}
